<script setup>
import TabBar from "@/components/TabBar.vue";
import { baseApi } from "@/service";
import TopSearch from "./components/TopSearch.vue";
const up = () => {
  // UploadFiles();
  baseApi();
};
const goDetail = () => {
  uni.navigateTo({
    url: "/sub_home/products",
  });
};
</script>

<template>
  <view class="index-page">
    <TopSearch />
    <view class="index-content">
      <wd-button @tap="up"> upload </wd-button>
      <br />
      <wd-button size="small" @tap="goDetail"> 查看详情 </wd-button>
    </view>
    <TabBar />
  </view>
</template>

<style lang="scss" scoped>
.index-page {
  padding: 0;
  .index-content {
    padding: 10px 12px;
  }
}
</style>
